# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=gnome-disk-utility
pkgver=46.1
pkgrel=0
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="https://wiki.gnome.org/Apps/Disks"
arch="all"
license="GPL-2.0-or-later"
# Uses udisks_client that calls dbus /org/freedesktop/UDisks2/Manager
depends="
	dosfstools
	gptfdisk
	parted
	udisks2
	wipefs
	"
makedepends="
	desktop-file-utils
	elogind-dev
	glib-dev
	gnome-settings-daemon-dev
	libcanberra-dev
	libdvdread-dev
	libhandy1-dev
	libnotify-dev
	libpwquality-dev
	libsecret-dev
	libxslt-dev
	meson
	udisks2-dev
	xz-dev
	"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-disk-utility/${pkgver%.*}/gnome-disk-utility-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e2b6b6e793e5ad0ca3c22704ccb9ae420acbe41d237eb9aabbda51a47dd3d452daa4f71f07edb37157a03cd2faf76338f80b9044f5d0ff546e74196005ba30bb  gnome-disk-utility-46.1.tar.xz
"
